#ifndef CIYOUPLAYER_H
#define CIYOUPLAYER_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui {
class CiYouPlayer;
}
QT_END_NAMESPACE


enum StackedWidgetPage{
    HomePage,MyselfPage,AdminPage
};

class CiYouPlayer : public QWidget
{
    Q_OBJECT

public:
    CiYouPlayer(QWidget *parent = nullptr);
    ~CiYouPlayer();

private slots:
    void onSwitchPage(int pageId);

private:
    //设置界面的UI部分
    void initUI();

    //绑定信号槽
    void connectSignalAndSlot();

    void resetSwitchBtnInfo(int pageId);

    //鼠标单击
    void mousePressEvent(QMouseEvent *event);

    //鼠标移动事件
    void mouseMoveEvent(QMouseEvent *event);

private:
    Ui::CiYouPlayer *ui;
    QPoint dragPos;
};
#endif // CIYOUPLAYER_H
